﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using SDE_FIC.DAO;
using SDE_FIC.Models;

namespace SDE_FIC.Controllers
{
    public class SistemaController : Controller
    {
        //
        // GET: /Sistema/

        public ActionResult Index()
        {
            int hora = DateTime.Now.Hour;
            ViewBag.Data = DateTime.Now.Date.ToString("D");
            ViewBag.Saudacao = hora < 12 ? "Bom dia" : hora < 18 ? "Boa tarde" : "Boa Noite";
            return View();
        }

    }
}
